// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT

/* Increased left padding on the sidebar of documentation */

.td-sidebar-nav__section .ul-1 ul {
  padding-left: 0.6rem !important;
  padding-right: 0.1rem !important;
}

/* Main documentation page */

#docs .row div {
  margin-top: 1rem;
}

/* Footer */

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1.5rem;
}

.container-fluid footer {
  min-height: inherit;
  padding-bottom: 0.5rem !important;
  padding-top: 2rem !important;
}

/* Icon color for temporary page */

#temporary-page i {
  color: lightgrey;
}

/* Meramaid config */

.mermaid svg {
  width: 60%;
  height: auto;
}

.large-scheme svg {
  width: 60%;
  font-size: 55px !important;
}

.large-scheme-two svg {
  width: 25%;
  font-size: 50px !important;
}

/* Display version menu on mobile version of the site */

@media (max-width: 991.98px) {
  .td-navbar .td-navbar-nav-scroll .navbar-nav {
    overflow-x: inherit !important;
  }

  .td-navbar .td-navbar-nav-scroll {
    overflow: inherit !important;
  }
}

/* Fix in-page anchors */

html {
  scroll-padding-top: 70px; /* height of sticky header */
}

/* Code blocks */

div.code-toolbar .toolbar {
  padding-right: 0.6em;
}

pre[class*="language-"] {
  background: #f8f9fa !important;
}

details {
  max-width: 80%;
}

@media (max-width: 991px) {
  details {
    max-width: 100% !important;
  }
}

li > details {
  max-width: 100%;
}

.code-toolbar {
  max-width: 80%;
}

details > .code-toolbar,
details > summary > .code-toolbar,
.highlight > .code-toolbar {
  max-width: 100%;
}
